<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Enable/Disable Customer</title>
</h:head>
<f:view>
	<body>
		<ui:composition template="../includes/template.xhtml">

			<ui:define name="mainbody">
				<center>
					<h:form>

						<p:panel header="Enable/Disable" style="min-height: 550px"
							styleClass="prime_panel">
							<p:growl id="growl" showDetail="true" sticky="false"
								autoUpdate="true" showSummary="false" />
							<p:spacer width="10" />

							<table cellpadding="4px" cellspacing="8px">
								<tr>
									<td><h:outputText value="School Name: " />
									</td>
									<td><p:tooltip for="school" showEvent="focus" hideEvent="blur" />
									<p:autoComplete
											value="#{enableDisableCustomerBean.selectedSchool}"
											id="school"
											completeMethod="#{enableDisableCustomerBean.completeSchool}"
											var="s" itemLabel="#{s.schoolName}" itemValue="#{s}"
											converter="#{enableDisableCustomerBean.schoolConverter}"
											forceSelection="true" required="true" requiredMessage="Please select School Name" title="Please enter the 1st letter and You can see your school" /></td>
								</tr>
								<tr>
									<td></td>
									<td><p:selectOneRadio id="options"
											value="#{enableDisableCustomerBean.selectedSchool.accountStatus}">
											<f:selectItem itemLabel="Enable" itemValue="true" />
											<br />
											<f:selectItem itemLabel="Disable" itemValue="false" />
										</p:selectOneRadio></td>

								</tr>
								<tr>
									<td></td>
									<td style="text-align: right"><p:spacer width="5" /> <p:commandButton
											id="submit" value="Done" ajax="false"
											action="#{enableDisableCustomerBean.action}" type="submit" />
									</td>
								</tr>
							</table>

						</p:panel>
					</h:form>

				</center>
			</ui:define>
		</ui:composition>
	</body>
</f:view>
</html>
